//
//  GHttpEnqine.h
//  guess
//
//  Created by fank on 15/11/3.
//  Copyright © 2015年 fank. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaiduAPISendRequest.h"
#import "ABTools.h"


typedef NS_ENUM(NSUInteger, JokeType) {
    JokeText = 1,
    JokeImage = 2,
};


#define BAIDU_API_KEY [NSString stringWithFormat:@"ade0c46e82a50e4d21ba134779d94254"]




@interface GHttpEnqine : NSObject

//笑话
+(void)getTheJokeWithTheType:(int)JokeType withThePage:(NSNumber *)page withComplete:(void(^)(id data))complete  withfailure:(void(^)(id error))failure;

////猜谜
//+ (void)getTheGuessWithUrl:(NSString *)url
//                 dictinory:(NSDictionary *)dictionary
//                   success:(void (^)(id data))success
//                      fail:(void (^)(id error))fail;

//猜谜
+(void)getTheGuessWithThePage:(NSNumber *)page withComplete:(void(^)(id data))complete  withfailure:(void(^)(id error))failure;

//糗事百科视频
+(void)getQiuBaiVideoWithUrl:(NSString *)url
                        page:(NSNumber *)page
                     success:(void(^)(id data))success
                        fail:(void(^)(id error))fail;

//有意思吧图文
+(void)getYouYiSiPicWithUrl:(NSString *)url
                       page:(NSNumber *)page
                    success:(void(^)(id data))success
                       fail:(void(^)(id error))fail;
//草蛋网数据
+(void)getCaoEggWithUrl:(NSString *)url
                   page:(NSNumber *)page
                success:(void(^)(id data))success
                   fail:(void(^)(id error))fail;

@end
